package com.augurit.common.sysfile.util;

import com.augurit.common.util.lang.StringUtils;

public class SysFileUtils {
	
	/**
	 * 获取完整的并且作了正确格式处理的URL
	 * @param rootPath
	 * @param redirectUrl
	 * @return
	 */
	public static String getFormatedRedirectUrl(String rootPath, String redirectUrl){
		if(rootPath != null && redirectUrl != null){
			return rootPath + StringUtils.replace(redirectUrl, ",", "&");
		}
		return null;
	}
}
